﻿<Window Loaded="Window_Loaded"  
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ArmoryViewer.Classes"
	x:Class="ArmoryViewer.PreferencesWindow"
	x:Name="Window"
	Title="Preferences"
	Width="350" Height="341" MinHeight="320" MinWidth="350" ShowActivated="True" ShowInTaskbar="True" ResizeMode="NoResize" Icon="/ArmoryViewer;component/Resources/armoryViewer.ico">

	<DockPanel x:Name="LayoutRoot">
        <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button IsDefault="True" Margin="5" Width="80" loc:LocalizationProvider.ContentID="Save" TabIndex="7" Click="btnSave_Click" />
            <Button IsCancel="True" Margin="5" Width="80" loc:LocalizationProvider.ContentID="Cancel"  TabIndex="8" />
        </StackPanel>
		<TabControl SnapsToDevicePixels="False" TabIndex="0">
			<TabItem loc:LocalizationProvider.ContentID="General">
                <StackPanel>
                    <DockPanel>
                        <Label DockPanel.Dock="Left" Width="100"  Margin="3,3,3,0" loc:LocalizationProvider.ContentID="ArmoryUrl" TabIndex="1" IsTabStop="False" />
                        <TextBox GotFocus="txtArmoryUrl_GotFocus"  TextChanged="txtArmoryUrl_TextChanged"  Margin="8,0,3,3"  Text="http://www.wowarmory.com" TabIndex="2" Name="txtArmoryUrl" />
                    </DockPanel>
                    <DockPanel Margin="0,3,0,0">
                        <Label Width="100"  DockPanel.Dock="Left" Margin="3,3,3,0" loc:LocalizationProvider.ContentID="Language" TabIndex="3" IsTabStop="False" />
                        <ComboBox Margin="8,0,3,3" SelectedIndex="0" TabIndex="4" Name="cboLanguage">
                            <ComboBoxItem Content="English"/>
                            <ComboBoxItem Content="Deutsch"/>
                            <ComboBoxItem Content="Español"/>
                            <ComboBoxItem Content="Français"/>
                            <ComboBoxItem Content="Русском"/>
                        </ComboBox>
                    </DockPanel>
                    <CheckBox Margin="3,30,3,4" loc:LocalizationProvider.ContentID="HideWhenMinimized"  TabIndex="5" Name="chkHideWhenMinimized" />
                    <CheckBox Margin="3,4,3,4" loc:LocalizationProvider.ContentID="CheckForUpdates"  TabIndex="6" Name="chkCheckForUpdates" />
                    <CheckBox Margin="3,4,3,4" loc:LocalizationProvider.ContentID="DownloadSocketsEnchants"  TabIndex="7" Name="chkDownloadSockets" />
                    <CheckBox Margin="3,4,3,4" loc:LocalizationProvider.ContentID="AVProtocol"  TabIndex="8" Name="chkHandleAVProtocol" />
                    <CheckBox Margin="3,4,3,4" loc:LocalizationProvider.ContentID="DownloadAchievements"  TabIndex="9" Name="chkDownloadAchievements" />
                    <CheckBox Margin="3,4,3,4" Content="Download Beta Versions"  Name="chkUseBetaMirror" TabIndex="9" />
                </StackPanel>
            </TabItem>
			<TabItem loc:LocalizationProvider.ContentID="ProxySettings">
                <StackPanel>
				<RadioButton Margin="10 10 3 0" GroupName="Proxy" loc:LocalizationProvider.ContentID="NoProxy"  IsChecked="True" Checked="rdoNoProxy_Checked" Name="rdoNoProxy" />
				<RadioButton Margin="10 10 3 0" GroupName="Proxy" loc:LocalizationProvider.ContentID="AutoDetectProxy"  Checked="rdoAutoDetect_Checked" Name="rdoAutoDetectProxy" />
                	<RadioButton Margin="10 10 3 5" GroupName="Proxy" loc:LocalizationProvider.ContentID="ManuallyConfigureProxy"  Checked="RadioButton_Checked" Name="rdoManualProxy" />
                	<StackPanel x:Name="proxyConfig" IsEnabled="False" Margin="30 3 3 0">
                		<DockPanel>
                			<Label Margin="3 3 3 0" Width="100" loc:LocalizationProvider.ContentID="Address" />
                			<TextBox DockPanel.Dock="Right" Margin="10 3 3 3" Name="txtProxyAddress" />
                		</DockPanel>
                		<DockPanel>
                			<Label Margin="3 3 3 0" Width="100" loc:LocalizationProvider.ContentID="Port"  />
                			<TextBox DockPanel.Dock="Right" Margin="10 3 3 3" Name="txtProxyPort" />
                		</DockPanel>
                		<DockPanel>
                			<Label Margin="3 3 3 0" Width="100" loc:LocalizationProvider.ContentID="Username"  />
                			<TextBox DockPanel.Dock="Right" Margin="10 3 3 3" Name="txtProxyUsername" />
                		</DockPanel>
                		<DockPanel>
                			<Label Margin="3 3 3 0" Width="100" loc:LocalizationProvider.ContentID="Password"  />
                			<PasswordBox DockPanel.Dock="Right" Margin="10 3 3 3" Name="txtProxyPassword" />
                		</DockPanel>
                	</StackPanel>
				
				</StackPanel>
            </TabItem>
		</TabControl>
	</DockPanel>
</Window>